package game.engine.base.anim.single

import game.engine.base.Node
import game.engine.base.anim.Tween

class Call(val action: (Node) -> Unit) : Tween() {

    override fun execute(dt: Float) {
        action.invoke(target!!)
    }

    override fun clone(): Tween {
        return Call(action)
    }
}